package cuiyt.designpattern.observer.v2.vo;

import cuiyt.designpattern.observer.v2.observer.SchoolObserver;
import lombok.Data;

@Data
public class Student implements SchoolObserver {

    private String name;

    public Student(String name) {
        this.name = name;
    }

    @Override
    public void eventChange(Event event) {
        System.out.println("[Student ]: "+this.name + " 处理通知：" + event.getEventMsg());
    }
}
